package com.right.health.app.greendao;

import com.right.health.app.bean.ChatMemberInfo;
import com.right.health.app.bean.greendao.ChatMemberInfoDao;

/**
 * 存放DaoUtils
 */
public class DaoUtilsStore {
    private volatile static DaoUtilsStore instance = new DaoUtilsStore();
    private CommonDaoUtils<ChatMemberInfo> chatMemberInfoDaoUtils;

    public static DaoUtilsStore getInstance() {
        return instance;
    }

    private DaoUtilsStore() {
        DaoManager mManager = DaoManager.getInstance();
        ChatMemberInfoDao chatMemberInfoDao = mManager.getDaoSession().getChatMemberInfoDao();
        chatMemberInfoDaoUtils = new CommonDaoUtils(ChatMemberInfo.class, chatMemberInfoDao);
    }

    public CommonDaoUtils<ChatMemberInfo> getChatMemberInfoDaoUtils() {
        return chatMemberInfoDaoUtils;
    }

}